


import java.util.HashMap;

/**
 *
 * @author Aksel Kvitberg
 */
public class IMRP {

	public HashMap<String, String> characters;

	public IMRP(){
		reset();
	}

	public String getCharacter(String user){
		return characters.get(user.toLowerCase());
	}

	public void setCharacter(String user, String character){
		characters.put(user.toLowerCase(), character);
	}

	public void userRenamed(String oldName, String newName){
		String character = characters.get(oldName.toLowerCase());
		characters.remove(oldName.toLowerCase());
		characters.put(newName.toLowerCase(), character);
	}

	public void reset(){
		characters = new HashMap<String, String>();
	}
	
}
